package com.lx.algorithm.structure;

/**
 * Description:
 * Copyright:   Copyright (c)2019
 * Company:     zefu
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2021-09-02 17:15:11
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2021-09-02     张李鑫                     1.0         1.0 Version
 */
public class RingArray_Test {
    public static void main(String[] args) {
        RingArray ringArray = new RingArray(100);
        for (int i = 0; i < 100; i++) {
            ringArray.push((int) (Math.random()*100));
        }
        for (int i = 0; i < 100; i++) {
                ringArray.pop();
                System.out.println(ringArray.getMin());
        }
    }
}
